<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <th:block th:include="include :: header('学生基础信息')"/>
</head>
<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-content">
                    <form method="get" class="form-horizontal" id="information">
                        <input type="hidden" name="id" id="id" th:value="${basicInformation.id}">
                        <input type="hidden" name="childId" id="childId" th:value="${basicInformation.childId}">
                        <div class="form-group">
                            <label class="col-sm-2 control-label">儿童姓名：</label>

                            <div class="col-sm-2">
                                <input type="text" disabled="" class="form-control" th:value="${basicInformation.childName}">
                            </div>

                            <label class="col-sm-2 control-label">儿童性别：</label>

                            <div class="col-sm-2">
                                <input type="text" disabled="" class="form-control" th:value="${basicInformation.childSex}">
                            </div>

                            <label class="col-sm-2 control-label">儿童年龄：</label>
                            <div class="col-sm-2">
                                <input type="text" disabled="" class="form-control" th:value="${basicInformation.childAge}">
                            </div>

                            <label class="col-sm-2 control-label">家长姓名：</label>
                            <div class="col-sm-2">
                                <input type="text" name="parentName"  class="form-control" th:value="${basicInformation.parentName}">
                            </div>

                            <label class="col-sm-2 control-label">家长电话：</label>
                            <div class="col-sm-2">
                                <input type="text" name="parentPhone"  class="form-control" th:value="${basicInformation.parentPhone}">
                            </div>

                            <label class="col-sm-2 control-label">家长年龄：</label>
                            <div class="col-sm-2">
                                <input type="text" name="parentAge"  class="form-control" th:value="${basicInformation.parentAge}">
                            </div>

                            <label class="col-sm-2 control-label">家长工作：</label>
                            <div class="col-sm-6">
                                <input type="text" name="parentJob"  class="form-control" th:value="${basicInformation.parentJob}">
                            </div>

                        </div>

                        <div class="hr-line-dashed"></div>

                        <div class="form-group">
                            <label class="col-sm-2 control-label">就学情况：</label>

                            <div class="col-sm-10">
                                <div class="radio check-box">
                                    <label><input type="radio" value="15" name="learnSituation" th:attr="checked=${basicInformation.learnSituation == 15?true:false}"> <i></i> 未就学</label>
                                </div>
                                <div class="radio check-box">
                                    <label><input type="radio" value="16" name="learnSituation" th:attr="checked=${basicInformation.learnSituation == 16?true:false}"> <i></i> 训练机构</label>
                                </div>
                                <div class="radio check-box">
                                    <label><input type="radio" value="17" name="learnSituation" th:attr="checked=${basicInformation.learnSituation == 17?true:false}"> <i></i> 普通幼儿园</label>
                                </div>
                                <div class="radio check-box">
                                    <label><input type="radio" value="18" name="learnSituation" th:attr="checked=${basicInformation.learnSituation == 18?true:false}"> <i></i> 特殊幼儿园</label>
                                </div>
                                <div class="radio check-box">
                                    <label><input type="radio" value="19" name="learnSituation" th:attr="checked=${basicInformation.learnSituation == 19?true:false}"> <i></i> 普通小学</label>
                                </div>
                                <div class="radio check-box">
                                    <label><input type="radio" value="20" name="learnSituation" th:attr="checked=${basicInformation.learnSituation == 20?true:false}"> <i></i> 特殊学校</label>
                                </div>
                                <div class="radio check-box">
                                    <label><input type="radio" value="21" name="learnSituation" th:attr="checked=${basicInformation.learnSituation == 21?true:false}"> <i></i> 其他</label>
                                </div>

                            </div>

                            <label class="col-sm-2 control-label">备注：</label>
                            <div class="col-sm-2">
                                <input type="text" class="form-control" name="learnSituationRemark" th:field="${basicInformation.learnSituationRemark}">
                            </div>
                        </div>

                        <div class="hr-line-dashed"></div>

                        <div class="form-group">
                            <label class="col-sm-2 control-label">家庭排序：</label>

                            <div class="col-sm-10">
                                <div class="radio check-box">
                                    <label><input type="radio" value="22" name="familySort" th:attr="checked=${basicInformation.familySort == 22?true:false}"> <i></i> 头胎</label>
                                </div>
                                <div class="radio check-box">
                                    <label><input type="radio" value="23" name="familySort" th:attr="checked=${basicInformation.familySort == 23?true:false}"> <i></i> 二胎</label>
                                </div>
                                <div class="radio check-box">
                                    <label><input type="radio" value="24" name="familySort" th:attr="checked=${basicInformation.familySort == 24?true:false}"> <i></i> 三胎</label>
                                </div>
                            </div>
                        </div>

                        <div class="hr-line-dashed"></div>

                        <div class="form-group">
                            <label class="col-sm-2 control-label">主要语言：</label>

                            <div class="col-sm-10">
                                <label th:each="mainLanguage:${basicInformation.mainLanguageList}" class="check-box">
                                    <input name="mainLanguage" type="checkbox" th:value="${mainLanguage.id}" th:text="${mainLanguage.name}" th:checked="${mainLanguage.status}">
                                </label>
                            </div>

                            <label class="col-sm-2 control-label">备注：</label>
                            <div class="col-sm-2">
                                <input type="text" class="form-control" name="mainLanguageRemark" th:field="${basicInformation.mainLanguageRemark}">
                            </div>
                        </div>

                        <div class="hr-line-dashed"></div>

                        <div class="form-group">
                            <label class="col-sm-2 control-label">医学判断：</label>

                            <div class="col-sm-10">
                                <label th:each="medicalDiagnosis:${basicInformation.medicalDiagnosisList}" class="check-box">
                                    <input name="medicalDiagnosis" type="checkbox" th:value="${medicalDiagnosis.id}" th:text="${medicalDiagnosis.name}" th:checked="${medicalDiagnosis.status}">
                                </label>
                            </div>

                            <label class="col-sm-2 control-label">备注：</label>
                            <div class="col-sm-2">
                                <input type="text" class="form-control" name="medicalDiagnosisRemark" th:field="${basicInformation.medicalDiagnosisRemark}">
                            </div>
                        </div>

                        <div class="hr-line-dashed"></div>

                        <div class="form-group">
                            <label class="col-sm-2 control-label">家族遗传病：</label>

                            <div class="col-sm-10">
                                <label th:each="familyHereditaryDisease:${basicInformation.familyHereditaryDiseaseList}" class="check-box">
                                    <input name="familyHereditaryDisease" type="checkbox" th:value="${familyHereditaryDisease.id}" th:text="${familyHereditaryDisease.name}" th:checked="${familyHereditaryDisease.status}">
                                </label>
                            </div>

                            <label class="col-sm-2 control-label">备注：</label>
                            <div class="col-sm-2">
                                <input type="text" class="form-control" name="hereditaryDiseaseRemark" th:field="${basicInformation.hereditaryDiseaseRemark}">
                            </div>
                        </div>

                        <div class="hr-line-dashed"></div>

                        <div class="form-group">
                            <label class="col-sm-2 control-label">孕期特殊情况：</label>

                            <div class="col-sm-10">
                                <label th:each="pregnantSituation:${basicInformation.pregnantSituationList}" class="check-box">
                                    <input name="pregnantSituation" type="checkbox" th:value="${pregnantSituation.id}" th:text="${pregnantSituation.name}" th:checked="${pregnantSituation.status}">
                                </label>
                            </div>

                            <label class="col-sm-2 control-label">甲状腺功能异常备注：</label>
                            <div class="col-sm-2">
                                <input type="text" class="form-control" name="abnormalThyroidFunction" th:field="${basicInformation.abnormalThyroidFunction}">
                            </div>

                            <label class="col-sm-2 control-label">孕期服药备注：</label>
                            <div class="col-sm-2">
                                <input type="text" class="form-control" name="pregnantMedicine" th:field="${basicInformation.pregnantMedicine}">
                            </div>

                            <label class="col-sm-2 control-label">孕期特殊情况备注：</label>
                            <div class="col-sm-2">
                                <input type="text" class="form-control" name="pregnantSituationRemark" th:field="${basicInformation.pregnantSituationRemark}">
                            </div>
                        </div>

                        <div class="hr-line-dashed"></div>

                        <div class="form-group">
                            <label class="col-sm-2 control-label">孕期情绪状态：</label>

                            <div class="col-sm-10">
                                <label th:each="pregnantEmotion:${basicInformation.pregnantEmotionList}" class="check-box">
                                    <input name="pregnantEmotion" type="checkbox" th:value="${pregnantEmotion.id}" th:text="${pregnantEmotion.name}" th:checked="${pregnantEmotion.status}">
                                </label>
                            </div>

                            <label class="col-sm-2 control-label">备注：</label>
                            <div class="col-sm-2">
                                <input type="text" class="form-control" name="pregnantEmotionRemark" th:field="${basicInformation.pregnantEmotionRemark}">
                            </div>
                        </div>

                        <div class="hr-line-dashed"></div>

                        <div class="form-group">
                            <label class="col-sm-2 control-label">生产方式：</label>

                            <div class="col-sm-10">
                                <div class="radio check-box">
                                    <label><input type="radio" value="53" name="productionMethod" th:attr="checked=${basicInformation.productionMethod == 53?true:false}"> <i></i> 顺产</label>
                                </div>
                                <div class="radio check-box">
                                    <label><input type="radio" value="54" name="productionMethod" th:attr="checked=${basicInformation.productionMethod == 54?true:false}"> <i></i> 剖腹产</label>
                                </div>
                                <div class="radio check-box">
                                    <label><input type="radio" value="55" name="productionMethod" th:attr="checked=${basicInformation.productionMethod == 55?true:false}"> <i></i> 顺转剖</label>
                                </div>
                            </div>
                        </div>

                        <div class="hr-line-dashed"></div>

                        <div class="form-group">
                            <label class="col-sm-2 control-label">生产期间特殊情况：</label>

                            <div class="col-sm-10">
                                <label th:each="productionSpecialSituation:${basicInformation.productionSpecialSituationList}" class="check-box">
                                    <input name="productionSpecialSituation" type="checkbox" th:value="${productionSpecialSituation.id}" th:text="${productionSpecialSituation.name}" th:checked="${productionSpecialSituation.status}">
                                </label>
                            </div>
                        </div>

                        <div class="hr-line-dashed"></div>

                        <div class="form-group">
                            <label class="col-sm-2 control-label">产后情况：</label>

                            <div class="col-sm-10">
                                <label th:each="afterProductionSituation:${basicInformation.afterProductionSituationList}" class="check-box">
                                    <input name="afterProductionSituation" type="checkbox" th:value="${afterProductionSituation.id}" th:text="${afterProductionSituation.name}" th:checked="${afterProductionSituation.status}">
                                </label>
                            </div>

                            <label class="col-sm-2 control-label">备注：</label>
                            <div class="col-sm-2">
                                <input type="text" class="form-control" name="afterProductionRemark" th:field="${basicInformation.afterProductionRemark}">
                            </div>
                        </div>

                        <div class="hr-line-dashed"></div>

                        <div class="form-group">
                            <label class="col-sm-2 control-label">主要照料者：</label>

                            <div class="col-sm-10">
                                <label th:each="mainCaregiver:${basicInformation.mainCaregiverList}" class="check-box">
                                    <input name="mainCaregiver" type="checkbox" th:value="${mainCaregiver.id}" th:text="${mainCaregiver.name}" th:checked="${mainCaregiver.status}">
                                </label>
                            </div>
                        </div>

                        <div class="hr-line-dashed"></div>

                        <div class="form-group">
                            <label class="col-sm-2 control-label">意外身体伤害：</label>

                            <div class="col-sm-10">
                                <label th:each="accidentPhysicalInjury:${basicInformation.accidentPhysicalInjuryList}" class="check-box">
                                    <input name="accidentPhysicalInjury" type="checkbox" th:value="${accidentPhysicalInjury.id}" th:text="${accidentPhysicalInjury.name}" th:checked="${accidentPhysicalInjury.status}">
                                </label>
                            </div>

                            <label class="col-sm-2 control-label">备注：</label>
                            <div class="col-sm-2">
                                <input type="text" class="form-control" name="physicalInjuryRemark" th:field="${basicInformation.physicalInjuryRemark}">
                            </div>
                        </div>

                        <div class="hr-line-dashed"></div>

                        <div class="form-group">
                            <label class="col-sm-2 control-label">意外家庭变动：</label>

                            <div class="col-sm-10">
                                <label th:each="accidentFamilyChanges:${basicInformation.accidentFamilyChangesList}" class="check-box">
                                    <input name="accidentFamilyChanges" type="checkbox" th:value="${accidentFamilyChanges.id}" th:text="${accidentFamilyChanges.name}" th:checked="${accidentFamilyChanges.status}">
                                </label>
                            </div>

                            <label class="col-sm-2 control-label">备注：</label>
                            <div class="col-sm-2">
                                <input type="text" class="form-control" name="familyChangesRemark" th:field="${basicInformation.familyChangesRemark}">
                            </div>
                        </div>

                        <div class="hr-line-dashed"></div>

                        <div class="form-group">
                            <label class="col-sm-2 control-label">一类疫苗：</label>

                            <div class="col-sm-10">
                                <label th:each="oneTypeVaccines:${basicInformation.oneTypeVaccinesList}" class="check-box">
                                    <input name="oneTypeVaccines" type="checkbox" th:value="${oneTypeVaccines.id}" th:text="${oneTypeVaccines.name}" th:checked="${oneTypeVaccines.status}">
                                </label>
                            </div>
                        </div>

                        <div class="hr-line-dashed"></div>

                        <div class="form-group">
                            <label class="col-sm-2 control-label">二类疫苗：</label>

                            <div class="col-sm-10">
                                <label th:each="twoTypeVaccines:${basicInformation.twoTypeVaccinesList}" class="check-box">
                                    <input name="twoTypeVaccines" type="checkbox" th:value="${twoTypeVaccines.id}" th:text="${twoTypeVaccines.name}" th:checked="${twoTypeVaccines.status}">
                                </label>
                            </div>

                            <label class="col-sm-2 control-label">其他疫苗：</label>
                            <div class="col-sm-2">
                                <input type="text" class="form-control" name="otherVaccines" th:field="${basicInformation.otherVaccines}">
                            </div>
                        </div>

                        <div class="hr-line-dashed"></div>

                        <div class="form-group">
                            <label class="col-sm-2 control-label">食物过敏：</label>

                            <div class="col-sm-10">
                                <label th:each="foodAllergy:${basicInformation.foodAllergyList}" class="check-box">
                                    <input name="foodAllergy" type="checkbox" th:value="${foodAllergy.id}" th:text="${foodAllergy.name}" th:checked="${foodAllergy.status}">
                                </label>
                            </div>

                            <label class="col-sm-2 control-label">备注：</label>
                            <div class="col-sm-2">
                                <input type="text" class="form-control" name="foodAllergyRemark" th:field="${basicInformation.foodAllergyRemark}">
                            </div>
                        </div>

                        <div class="hr-line-dashed"></div>

                        <div class="form-group">
                            <label class="col-sm-2 control-label">吸入性敏：</label>

                            <div class="col-sm-10">
                                <label th:each="breathAllergy:${basicInformation.breathAllergyList}" class="check-box">
                                    <input name="breathAllergy" type="checkbox" th:value="${breathAllergy.id}" th:text="${breathAllergy.name}" th:checked="${breathAllergy.status}">
                                </label>
                            </div>

                            <label class="col-sm-2 control-label">备注：</label>
                            <div class="col-sm-2">
                                <input type="text" class="form-control" name="breathAllergyRemark" th:field="${basicInformation.breathAllergyRemark}">
                            </div>
                        </div>

                        <div class="hr-line-dashed"></div>

                        <div class="form-group">
                            <label class="col-sm-2 control-label">接触性过敏：</label>

                            <div class="col-sm-10">
                                <label th:each="contactAllergy:${basicInformation.contactAllergyList}" class="check-box">
                                    <input name="contactAllergy" type="checkbox" th:value="${contactAllergy.id}" th:text="${contactAllergy.name}" th:checked="${contactAllergy.status}">
                                </label>
                            </div>

                            <label class="col-sm-2 control-label">备注：</label>
                            <div class="col-sm-2">
                                <input type="text" class="form-control" name="contactAllergyRemark" th:field="${basicInformation.contactAllergyRemark}">
                            </div>
                        </div>

                        <div class="hr-line-dashed"></div>

                        <div class="form-group">
                            <label class="col-sm-2 control-label">肢体缺失：</label>

                            <div class="col-sm-10">
                                <label th:each="limbDeletion:${basicInformation.limbDeletionList}" class="check-box">
                                    <input name="limbDeletion" type="checkbox" th:value="${limbDeletion.id}" th:text="${limbDeletion.name}" th:checked="${limbDeletion.status}">
                                </label>
                            </div>

                            <label class="col-sm-2 control-label">备注：</label>
                            <div class="col-sm-2">
                                <input type="text" class="form-control" name="limbDeletionRemark" th:field="${basicInformation.limbDeletionRemark}">
                            </div>
                        </div>

                        <div class="hr-line-dashed"></div>

                        <div class="form-group">
                            <label class="col-sm-2 control-label">医学检查：</label>

                            <div class="col-sm-10">
                                <label th:each="medicalExamination:${basicInformation.medicalExaminationList}" class="check-box">
                                    <input name="medicalExamination" type="checkbox" th:value="${medicalExamination.id}" th:text="${medicalExamination.name}" th:checked="${medicalExamination.status}">
                                </label>
                            </div>

                            <label class="col-sm-2 control-label">备注：</label>
                            <div class="col-sm-2">
                                <input type="text" class="form-control" name="medicalExaminationRemark" th:field="${basicInformation.medicalExaminationRemark}">
                            </div>
                        </div>

                        <div class="hr-line-dashed"></div>

                        <div class="form-group">
                            <div class="col-sm-4 col-sm-offset-2">
                                <button class="btn btn-primary" onclick="submitHandler()">保存内容</button>
                                <button class="btn btn-white" type="submit">取消</button>
                            </div>
                        </div>

                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<th:block th:include="include :: footer"/>
<script type="text/javascript">


    function submitHandler() {
        var prefix = ctx + "business/childInformation/saveInformation";
        var data = $("#information").serializeArray();
        console.log(data);
        $.ajax({
            cache: true,
            type: "POST",
            url: prefix,
            data: data,
            async: false,
            error: function (request) {
                $.modal.alertError("系统错误");
            },
            success: function (data) {
                $.operate.successCallback(data);
            }
        });
    }

</script>
</body>
</html>